package com.hk.employeemanagementsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.sql.Timestamp;

/**
 * @author by 何坤
 * @Classname PositionEntity
 * @Description TODO
 * @Date 2019/12/18 10:45
 */
@TableName("tab_position")
public class PositionEntity {
    @TableId(value = "pos_id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "pos_name")
    private String name;

    @TableField(value = "pos_create_time")
    private Timestamp createTime;

    @TableField(value = "pos_enabled")
    private Boolean enabled;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Boolean getEnabled() {
        return enabled;
    }

    public void setEnabled(Boolean enabled) {
        this.enabled = enabled;
    }

    @Override
    public String toString() {
        return "PositionEntity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", createTime=" + createTime +
                ", enabled=" + enabled +
                '}';
    }
}
